package base.day18.exception;

public class Exception3 {
    public static void main(String[] args) {

        try {
            int[] arr={1,2,3,4,5};
            System.out.println(arr[10]);
        }
        catch(java.lang.Exception err){
            System.out.println(err.getMessage());
            System.out.println(err.toString());
            err.printStackTrace();
        }
    }
}
